<template>
  <div>
    <div class="headertitle">
      <Header1>猫眼电影</Header1>
      <Header2></Header2>
    </div>

    <div class="content">
      <div class="childtitle">
        <router-link to="/city"> 深圳 </router-link>
        <router-link to="/home/reying">热映</router-link>
        <router-link to="/home/yingyuan">影院</router-link>
        <router-link to="/home/daiying">待映</router-link>
        <router-link to="/home/jingdian">经典电影</router-link>
        <div class="limg">
          <img src="../../assets/搜索 (1).png" alt="" />
        </div>
      </div>

      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import Header1 from "../../components/common/Header1.vue";
import Header2 from "../../components/common/Header2.vue";
// import axios from 'axios'

export default {
  name: "Movie",
  data() {
    return {
      reyingList: [],
      haoping: "",
    };
  },
  components: {
    Header1,
    Header2,
  },

  methods: {
    change: function () {
      console.log("1111");
      console.log(this.$router);
    },
  },
};
</script>

<style scoped>
.headertitle {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1;
}
.content {
  margin-top: 110px;
  margin-bottom: 50px;
}
.childtitle {
  position: fixed;
  width: 100%;
  /* height: 200px; */
  display: flex;
  justify-content: space-around;
  height: 50px;
  line-height: 50px;
  z-index: 1;
  background: #fff;
}
.childtitle a {
  color: #666;
}
.childtitle a.router-link-exact-active {
  border-bottom: 3px solid #f03d37;
  font-size: 16px;
  font-weight: bold;
}

.limg img {
  width: 20px;
  height: 20px;
  margin-top: 15px;
}
</style>